Skip to content

[6.x] Prevent reordering from showing a false badge on the filter button - #15079

Merged
jasonvarga merged 3 commits into
statamic:6.xfrom
lazerg:fix/issue-15078-reorder-filter-badge
Aug 7, 2026
Merged

[6.x] Prevent reordering from showing a false badge on the filter button#15079
jasonvarga merged 3 commits into
statamic:6.xfrom
lazerg:fix/issue-15078-reorder-filter-badge

Conversation

@lazerg

@lazerg lazerg commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Reordering entries in a collection with a max depth of one puts a "1" badge on the Filters button, even though nothing is filtered and the Filters panel has nothing to clear. Reordering adds an internal site filter to scope the query, and the badge count was counting every active filter badge the server returned, that internal one included. Now the count only covers badges whose handles belong to the listing's configured filters, which is what the Filters panel already shows.

Fixes #15078


Screen.Recording.2026-07-26.at.06.41.45.mp4

@lazerg
lazerg force-pushed the fix/issue-15078-reorder-filter-badge branch from 3845214 to 819df85 Compare July 26, 2026 01:47
@lazerg

lazerg commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Hey @jasonvarga, please check this when you have time.

@duncanmcclean

duncanmcclean commented Aug 2, 2026

Copy link
Copy Markdown
Member

Sorry, we can't provide an ETA for reviewing/merging this pull request. 😞

It's already on our to-do list and we'll review it when we can. If you need to use this fix in the meantime, consider applying this PR as a composer patch.

jasonvarga and others added 2 commits August 6, 2026 11:38
Removes allowPresets/allowBulkActions/allowCustomizingColumns, which have
no effect since the default slot override already suppresses that part
of the template. mountListing now takes a props object instead of a
positional filters arg.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit 30efdcc into statamic:6.x Aug 7, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reordering a collection shows a badge on the filter button

3 participants